package com.acsior.hibernate.vo;

// default package

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

import com.acsior.dac.impl.hibernate.vo.GeneratorKey;
import com.acsior.ddfn.impl.hibernate.vo.NomElementVO;

/**
 * NomCashBoxTransactionType entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "nom_cash_box_transaction_types", uniqueConstraints = @UniqueConstraint(columnNames = "system_name"))
@GeneratorKey(tableName = "nom_cash_box_transaction_types")
public class NomCashBoxTransactionTypeVO extends NomElementVO {

	/** */
	private static final long serialVersionUID = -1032841459684611582L;

	// Fields

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "nom_cash_box_transaction_category_id", nullable = false)
	private NomCashBoxTransactionCategoryVO nomCashBoxTransactionCategory;

	@Column(name = "is_income_for_cash_box", nullable = false)
	private boolean isIncomeForCashBox;

	@Column(name = "is_outer_initiated", nullable = false)
	private boolean isOuterInitiated;

	// Constructors

	/** default constructor */
	public NomCashBoxTransactionTypeVO() {
		super();
	}

	/**
	 * @return стойността на nomCashBoxTransactionCategory
	 */
	public NomCashBoxTransactionCategoryVO getNomCashBoxTransactionCategory() {
		return this.nomCashBoxTransactionCategory;
	}

	/**
	 * @param nomCashBoxTransactionCategory
	 *            се залага в nomCashBoxTransactionCategory
	 */
	public void setNomCashBoxTransactionCategory(
			NomCashBoxTransactionCategoryVO nomCashBoxTransactionCategory) {
		this.nomCashBoxTransactionCategory = nomCashBoxTransactionCategory;
	}

	/**
	 * @return стойността на isIncomeForCashBox
	 */
	public boolean isIncomeForCashBox() {
		return this.isIncomeForCashBox;
	}

	/**
	 * @param isIncomeForCashBox
	 *            се залага в isIncomeForCashBox
	 */
	public void setIncomeForCashBox(boolean isIncomeForCashBox) {
		this.isIncomeForCashBox = isIncomeForCashBox;
	}

	/**
	 * @return стойността на isOuterInitiated
	 */
	public boolean isOuterInitiated() {
		return this.isOuterInitiated;
	}

	/**
	 * @param isOuterInitiated
	 *            се залага в isOuterInitiated
	 */
	public void setOuterInitiated(boolean isOuterInitiated) {
		this.isOuterInitiated = isOuterInitiated;
	}
}